import build

Import(['env'])

akw_files = [
    'config/Config.py',
    'config/Module.py',
    'Filter.py',
    'Formatter.py',
    'Handler.py',
    'handlers/Module.py',
    'LoggerAdapter.py',
    'LoggerBase.py',
    'LogRecord.py',
    'Module.py',
    ]

sources = [
    'BasicConfig.cpp',
    'FileHandler.cpp',
    'Initialize.cpp',
    'Logger.cpp',
    'NullHandler.cpp',
    'Types.cpp',
    'handlers/SocketHandler.cpp',
    'handlers/StreamHandler.cpp',
    'handlers/WatchedFileHandler.cpp',
    ]

headers = [
    'BasicConfig.hpp',
    'FileHandler.hpp',
    'Initialize.hpp',
    'Logger.hpp',
    'NullHandler.hpp',
    'Types.hpp',
    'UserHandler.hpp',
    'handlers/SocketHandler.hpp',
    'handlers/StreamHandler.hpp',
    'handlers/WatchedFileHandler.hpp',
    ]

build.shared_library(
    env,
    name='logging',
    sources=sources,
    headers=headers,
    akw_files=akw_files,
    deps=['core'])
